import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Test2 {

	public static void main(String[] args) throws InterruptedException {
		
		ExecutorService service = Executors.newFixedThreadPool(4);
		long start = System.currentTimeMillis();
		for(int i = 0; i < 100_000_000; i++){
			service.execute(() -> {});
		}
		long end = System.currentTimeMillis();
		System.out.println((end-start)/1000.0);
		service.shutdown();
	}
}
